Fix a bug when the expected headers aren't passed in