fix inheritance support