Fix bug in order.js