fix invalid member access