small bug in bar.js, now stable