Fix processInputs monkey patch.

This PR fixes the #65.


@lukasgraf could you take a look.