fix CW update equation: #277
Merge pull request #285 from y-tag/fix-277

fix CW update equation: #277