Fix to alf.py where tree was being expanded 100x on every call