fix shortcode generator too early hook