fixing bug in getLocation