draw: fix input vs output typo in emit