How to fix error UndefVarError when eval using?

This post might help.