Fixed crashing with floating window.