fixed routing condition bug