Fix B-field decoding