Fix possible "list index out of range"