Fixed bug wherein graph had more than one input but only one alloc and it tried to use an input without alloc as a baseline.