update embed attribute detection