fixed wrong operator comparison problem