Use correct array indices, duh.