Apply patch to location module.