Fix when stripScripts is called