fix crash when opening profile view controller.