Attempt to fix bug where orders are added multiple times