fixed null ref exception in gateway headers