Fixing a bug in the summary bar