fixing scritps