fix view profile crash