fixes a bug with league index action