Fix TAG directive compilation