fix for DBAL, bug resolved by jonny.