fixed missing goal generation