scm: Bugfix drain-input.