Fixed bug with headers not copying across due to bad env var.