fixed reference to inputs variable followed by reference to input variable returning wrong results
fixed reference to inputs variable followed by reference to input variable returning wrong results

tucano/bpipe,vivovip/bpipe,sb43/bpipe,sb43/bpipe,tucano/bpipe,vivovip/bpipe,tucano/bpipe,vivovip/bpipe,sb43/bpipe