Fix external scripts