Fixed automatic migrations