Fixed the dirty size hack bug, the oversized toolbar and a resulting crash when resizing