fix bugs for profile