fix bug of unsaved contenyt