Fixed lib/msg.js