bugfix migration script