fixes bug in dataview and listview handlers