fix bug about timeout