Fix nested function example