fixed control bug