Fixed problem with saving state of parsing shortcodes