Fixed a bug of member condition in checkMember() function. This change helps to close #15.