Fix crash due to bad refactoring of ListView element