fix a bug where a keyword within a comment is detected