Fix fragment crash