prevent errors in 1.6 when editing template