Fix Floating window bug