fix for bdb