fix bug with grabing last locations