Fix summary calculating for dynamic columns