Fix option_name property in anonymous functions