bug fix: composite count and diff redraw

i#6