final fix of inputsDict logic bug