Double comparison issue