Fix bug with displaced groups; avoid parameters for non-inputs