fix for compact mdb fail