fix location checker