fixed the problem that pushes items in a wrong order.