fix small bugs of controls