Fixed a small bug in a comparison