Changed iod = N/A if classes are less than.

iod = 0 before for this case.