Bugfix for #1023

The output drain command was broken