fixed connection problem in the control