fix the create contracts