fixed stackpane issue