fix shortcode rendering to use attributes