Fix bugs in BTCreateFixeddata