fix float issue in desktop mode