Updated division by zero error in frame counter.