Committing apply so it can be switched to dev.
Fixing registration bug.