bug fix on membership