fix missing return value in setGoalPosition