fixes to orders