It seems the 10% deposit was related to the previous contract only. When that contract was voided, they should have returned the deposit and started from scratch.
You did not pay the 10% deposit on the new contract so they should return it.
Don't know who's worse, RE agents or lawyers...