Correction of partial damage resist calculation