log fix, table define fix