fixed order history bug