fix new-xsh sample code generation