fix problen in profile.py