fix expect script