Fixed resizing
Fixed crash when using unit menu