Fix many Notice: Undefined variable: *
Fix Notice: Undefined variable: *