fix location loggin failure