fixed comstream allocation