fix crash if window type not specified