fixed saving errors, which inexplicably didn't show up previously