correction to shortcode detection