Added checks for rndControl==null