clear temp file + remove warnings of unset index