Fixed friend index issue