fix bug that disconnect the app because of a timeout