mogaz decoding fix