Fix issue #341 for zero register
Merge pull request #353 from pebble8888/zeroreg

Fix issue #341 for zero register