Fix the bug of NEQ cases.