fix mqtt connection errors