fixes flashes on user profile