Bug fix for profile routes