fix NPE in stream output loading