fixed truncated script