Fix a bug in orders parser