Minor fix in memberships api