Tracking that nasty panic. Removed assignment to s.window in Init()