fix double assignations