Fixed documentation logic error