location controller errors fixed