Fixed input buffering packet mismatch problems.