src: fixed index out of bound exception when loading empty list