Fix type mismatch in template parameters.