fix bug when control number starts at 1