fixed bug where closing a section resulted in a blank screen