v1.0.1 bug fix for W

Fixes issues found by andrew-t-moore in issue #1