Fixed issue with KeywordHandler, adjusted StdModule reset condition