Add isFail Judge
Fix BUG