Fix field declarations with class body.