Fixed notices in location.module.