pixel statistics bug fix