Fixed a bug where shared templates where not found