Looks like the templating engine does't behave as I thought it did.
Ordering issue really fixed.