fixing bug entity Contrat