remove useless fragment