Location init bug