Bugfixes for the membership module