fix the fragment mode