Bugfix in bb.js