Fix errors when no orders to display