ZEN-11059: fixed list index error