fixed truncate command