fixed reset method when 0 items in adapter.