PR #1: Fix empty block running average calculation