Fix to template permissions edit.