fixed running out of memory on start/deck switch when logfile is too big