fix no-input case