correct bug with fragments