tr bug thanks to Adler Coelho