Applied a bugfix to the model renaming system

Models now save correctly before using any of the side actions