fix for running header in pdf output