fix trailing text