fixed beforeUpdate for PublishedElement