fix: bug of conditional statement of flat level.