Fix build pane refreshing bug