fix abstract class detection