Fix type compatibility check param order.