stack panel bug fix