fix a bug with BOOL in objFromDDB