Use correct Name/Argument Error

NOTE : This doesn't work. It sems this causes a deadlock. But without it, I just get a "NameError" is not defined, not sure why