Fixed bug with creating central pane