Fixed bug in saving files