Whenever the variance is not material, as provided in section 25-846, the court may direct the fact to be found according to the evidence, and may order an immediate amendment without costs.