bugfix for view orders