fix bug with TMOUT