fix the problem caused by paho golang changes.