bug fix for clearing data on panel