fix log file index