fix double to value assignment