fix checking for control existance.