Fixes order of creating object graph.