Fixed crash when using single master node