fixing format fragment bug