corrected spacing and fixed ComputeMinWork internals