Fix exception in show function doc and gotoDefinition