Fix some bugs in inventoryorder features