fixed logtable bug, when changing views