Fixed setting a negative array index