Fix an issue with passing in multiple elements