fix some bugs in orderview