fixed func.py bug in call