fix memcpy connect_block