fix partition size off-by-one error