fix logic for meta tag