Fixed bug where activity would not be on correct fragment when recreated