fixed logical error in doc