fix_log_indexing