Fixed bug with hab.js