Fixed bug with incomplete comparison.