fix #2706: exception in list adapter