Fix typo in the check_path validator