fixed bug for member inheritance