decode-tail-fix