Fixed a segfault with anonymous elements.