Fixed issue 77 relating to migrations.