Fix setting of dimensions on a scratchpad.