fix bug when a class is not found