Fixed problem with program saving