fixed migration that caused fresh install to fail