Twice execution of agent when using the interrupt

thanks @neel :slight_smile: