minor bug in CalcInputList (brace-handling)