fix bug for 0 profiles viewed