bugfix for SQLalchemy 0.8