Fixed bug in transcoder