Fixed an error with code migrations.