fix non-defined variable