Fixed functionality for save and load reg