bug fix for fermi.py