Fixing GetHeadersMessage to return the correct type.