fixed membership check issue