bug fix in GetMember

exit on error