multiple fragment bug fix