fixed some floating window bugs.