fixed a rather serious bug during the phase when we receive the header from our clients