Doc invocation fix

@ctb or @cswelcher please review and merge