fix compare to problem
Merge pull request #16 from otaviojava/compare_to

fix compare to problem