Fixed constants in the template editor