Fix an location update check error