fixed the header problem, closes #3