Fixed bugs, made floating windows more sane