(18)This Directive should not affect national law to the extent that the matters concerned are not regulated by this Directive, in particular with regard to the legality of the goods, damages and general contract law aspects such as the formation, validity, nullity or effects of contracts. The same should apply in relation to the consequences of the termination of the contract and to certain aspects regarding repair and replacement that are not regulated in this Directive. When regulating the rights of parties to withhold the performance of their obligations or part thereof until the other party performs its obligations, Member States should remain free to regulate the conditions and modalities regarding the withholding of payment of the price by the consumer. Member States should also remain free to regulate the consumer's entitlement to compensation for damage suffered as a consequence of an infringement by the seller of this Directive. This Directive should also not affect national rules that do not specifically concern consumer contracts and provide for specific remedies for certain types of defects that were not apparent at the time of conclusion of the sales contract, namely national provisions which may lay down specific rules for the seller's liability for hidden defects. This Directive should also not affect national laws providing for non-contractual remedies for the consumer, in the event of lack of conformity of goods, against persons in previous links of the chain of transactions, for example manufacturers, or other persons that fulfil the obligations of such persons.