fixed mysterious comparsion bug.