fixed possible infinite loop due to output type fallback misconfiguration, closes #244