headers fix; fixes #1013