Truncate script fix