fixing 'error' attribute on shortcode