fixed crash in history window