bugfix in sertilp class, wrong class count in if statement