further fix sqlalchemy issue