Fix syntax errors in membership system