fix bug in lib/constants.js