fix summary report logic