Fixed bug with ordersview