Wrong array index in attribute alt