Fix unset variable .
Fixed undefined variables.