Model needs to be set first.

To avoid null pointer exception when setting the start element.