fix skipframe count error