rdj assembly, fix depthcutoff computation

Addresses #396.