Workaround to fix performance problems when opening log view