Changed place for missing template layout error