some fixes for floating windows