bug fix for document not having keyword