Fix a bug

Fix a bug for matching orders