fix migration on empty db