Fix template loaders order.

Thanks to @wkornewald.