Fixed bug in setLatitude() and setLongitude().