fix double fragment bug