Fixed bug in clearing floats