fixed the bug that checks inverse condition by mistake.