fixe bug with timeout