Fix register
Merge pull request #269 from mattgu74/casperv2

Fix register