Fixed issues with keyword frequency usage.