Fix #388 ViewStack leaves CSS classes after transition