bugfix registration.js 0.2