bugfixes and attachment visible when tag is selected