fix processing of input stream packets