fix fragment bug