Fixed zero entity frequency issue.