added float left detection, fixed bug