fixed alembic bugs