small fix on compare