fixed bug in dz.h