fixed a bug

null orders from s to s were generated