Fixed frame count error.