Fix syntax error in sync class