deflicker keyframe bug fix (need to reset the current and next after each iteration)