bugfix in migratiescript