Some fixes in variable initialization for VisitLocationGoal.