fixing bug that caused orderServer to not flush old orders