Fix template loaders syntax for cached loader