Fix reloading scripts