fix work with layouts attachments (create, rename, destroy)