Fix logical error in documentation