fixup broken registry decoding