location init fix