corrected error in goalrecognition