Fixed nearestdoor that got lost in merge