fixed swiping bug where texfield was reset to zero