fix Binary / Generic decoding.

I add binary/generic decoding.