corrected shortcodes loading time for modals
modified correction algorithm