clear error message on a successful shortening