fixed summary calc bug