completely fix the bug about duty cycle recording