fixed unknown member bug

This solves #408, see #421 for an explanation.