bugfix in script initialization