Fix for #13(DBObjectReplacementCallback doesn't work properly)