fixing update/save issue