fix return for zero length children