Fragment bug fix