fixed bug when abstract class is a C class wrapper definition