fixed exception thrown by summary fallback mean vs median in dict