fix tailing header marks when attributes are specified

Fixes issue #74