The whole 10% deposit is part of the contract. If the contract is rescinded, then the basis for that 10% deposit no longer exists, and therefore it must be returned. Otherwise they will be holding the 10% unlawfully and it will be tantamount to stealing.