Fix some syntax errors with a nested class