Fix problem when sum box is closed and never shows up again