solved "An error occurred while saving." problem

Issues #38 Bug fixed