fixed bug in the -t flag