fix reload of scripts

closes #2063