crash in VCAI::completeGoal() fixed