Fix for incomplete handshake header