location fix

fixed location issue of returning double