Fixed ENC script