Fixed a profile bug.