Fixing example

An undefined variable was used