fix record_goal issues