Fix compare to function result instead of function.