Fixed incorrect comparison