Fixed GDC to use parent classes correctly