fix cases when intermdiate output is disabled