fix profile view in public mode