value saving template new value assignment broken