Corrected bug where using the -t flag stopped the header flag from working

This is a fix for issue #30. It seems that you will be busy and I fixed this for my own use so I figured I may as well submit a pull request despite it only being one line of code different.