Fix the bug that crashed IS Monitor when number of attributes was incorrectly calculated.