Bug fixes to Dtopo class