fixed findbugs issue with keySet usage