fixed bug with save button