Fixed missing template problem after incorrect input data