Fixes wrong selected elements for copying and list icon visibility