correct bug with fragment