Fixed the iterations problem with the virtual class.