Move this so the window doesn't appear first