fix InputSource after automatic merging of #1575 in the THREADED branch

fix InputSource after automatic merging of #1575 in the THREADED branch