Corrected a bug, added fuzzy valid order checking