fixed issue with clearing panel.