fix for exclude with shortcode

Fixes the problem with exclude function in shortcode (Bug from gorky5)