fix nearest animal behavior when gps is turned off and on