fix for root master NULL pinter

fix for  root master NULL pinter