Fixed error in comparison