fix migration, context can also be an empty string