fix bug that no timeout