fix migration and switch edit attribs