May have fixed a problem with leads.py