bug in utils.js fixed