Trying to fix the pub.sendMessage exception.