Fixed bug for not saving.