Fix stupid bug referencing wrong tuple value