fixed issue with saving content