Fix the undefine name error