fix a bug that caused form data to not be re-saved after existing
content is removed