tag script fix