Fixed undefined variable when managing users