Fixed incorrect variable use
E_ALL fix - ensure variable set before use.
E_ALL Fix - ensure variable set before use.
E_ALL Fix - properly initialize variable