Fixed an issue where if an entity reference was the first node it wouldn't get indented.