migration bugfix