Fixed bug in comparison.