Fix loading issue when parent wasn't a Pane