Fixed potential overflowable datatype in Running Average