Fixed the floating input problem