Corrected the repeated control bug