Fix bug for GoodEnding.