fix nested references

4 jobs for !52 with nested_references in 3 minutes and 22 seconds (queued for 3 seconds)
latest merge request