fixing two minor bugs in inputsDict logic