fixing users index bug