fixed bug about yesterdays orders