fix comparison operator