Fixed a bug with headers