fix migration to latest version