fixed Window script error