fix serious bug when npules= N*124