fixed safe_lead method