Additional fixes for fragment management and rotation.