Fix bug with has_shortcode