Fixed bug crashing program then history-file was empty
Fixed bug resize window after start program