bugfix registration.js v0.4