fix register problem
Merge pull request #444 from Shadowss/patch-108

fix register problem