Fixed packet leak issues.