fixes bug where info box with average cost didn't load