yet another bugfix of NIER diagram