fixed a bug inside the napalm.py routine