Fixed output buffering in shortcode