fixes averageblur bad idx shift and divide