Minor bug fix, fixes crash when changing output variables while the output does not exist.