fix: missing check for n_Zp
Merge pull request #289 from mmklee/fix_sw

fix: missing check for n_Zp