fix BUG and set a timeout time