refixed scripts