fixes decoding for validation bug