Fixed global templates variable