Using set_location with Ruby - cannot pass decimal values to gps coordinates

I am having a strange case using appium 1.4.16

When passing my gps coordinates to set_location method:

@browser.set_location(lat, lng, altitude)

When I pass int values set_location works fine
set_location(34.0, -79.0)
=> #<struct Selenium::WebDriver::Location latitude=34.0, longitude=-79.0, altitude=0.0>

But then I set anything like
set_location(34.5, -79.0)

I am getting the following error after quite some time.
EOFError: end of file reached
from /home/mwegrzyn/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/net/protocol.rb:153:in `read_nonblock’

What is up with that? Thanks for help.

Case closed: telnet call to emulator

telnet localhost 5554
geo fix 34.5, -79.0

Did not work due to incorrect locale on my ubuntu machine. . <=> ,