Fix crash with new fragment libs.