Corrects expect command.