quick bugfix for upstream change
Automatically rewritten for npm.