BUG: ... average had wrong dim