Improved AttachmentExpression selection handling.