fix profiles index bug