Ensure 'tag' is properly set in page data