Fixed a bug that mantain the fragments in the backstack