Fixed child fragments not being correctly destroyed when user switches to another fragment.