fixing a few bugs related to the new action permissions and saving