area count bug fix