Fix crash on launch in the window showing code.