Quickfix to resize canvas appropriately