Fixed script reloading