fix logical error in documentation