fix location state