fixed registration bug hopefully?
Merge pull request #31 from dvicini/master

fixed registration bug hopefully?