Bug fix: retreive remote inputs had duplicated lines of code