Update AttachmentBehavior.php