Fixed paste error for floating window