fix messageHandler on dunn.js