fixed "uninitialized_script" error