resolve bug on -t options