Fix register, update correctly the value
Merge pull request #7 from Appsdeck/fix_register

Fix register, update correctly the value