Fix typo in compare method

Signed-off-by: dpulitano <danielpulitano@gmail.com>