bugfix, script reference update
bugfixes