Fixed a bug caused by side effect of _.extend
Fixed a bug on script address retrieving