Fixed functional issues in comparison methods.