bugfix in fbRegister.js