fixed edits not being saved