fix in global keyword count (memory fix)