fixed bug with MemberType, see issue #23