Minor bugs with saving and opening fixed