Fix NMPB length issue, diffraction

Fix issue with wrong variable, use full length instead of diffraction length.