Fix average times block bug (thanks to danila@)