Fixed a warning for undef value
Redefined variable