fixed bug when selecting first row of tableView in locations controller