fix location button problem