prevent errors on save and section add