Fix bug with media types and addInputs