fix bugs, reponames are column, also if no log table index return