Fixed fragment stack issues