Bugfixes for order editing