fix crash when trying to edit a protected namespace