fix commit page when there is a compile error in commit