fixed bug in registeration
Merge pull request #5 from jsuit/experimental

fixed bug in registeration