fix some bugs for order controller