Fixed some types

(compear -> compare)