fixed minor issue with no classes added case.