Fix tag mode being set for every template