fixed rare error on save
h