bugfix for window phone
Automatically rewritten for npm.