fix bug with summary view not working right