bugfix for alembic