Bug fix for profile view mode.