Fix the bug that compare number incorrectly