timeout flush bug fixed