fix problem with order history