Fix bug with empty actions list.