handle the case where block->domain is NULL in comparaison function