fix for dbpatch