fixed the test condition.