fix double input