Fixed exception when class is not found