fix access to inherited fields