fixed bug (passing lat twice)