Avoid crash when the value's type does not corresponds to the variable type and bug fix the check about assignations