bug fix

numInputs for replacement nodes now increment properly