Fixed an issue with fragment states.