Fixed bug with repeating the same orders