Fix incomplete list of attachment after visibility change.