Fix Undefined variable Notice