Fix error in directory rule.