Fixed script so that it doesn't contain failures when running the first time