fix migrations, fixes #1