Fix migrating with multiple operations