Fix AC type numbers and the automatic scroll of log viewer.