fixing the users index bug