Fix bug setting multiple inputVars in graph