fixed control "not given" problem