bug fixed for abstract class mapping