fix undefined variable $header
Merge pull request #4 from mcg-web/patch-1

fix undefined variable $header