Fix type incompatibility