fixed bug with new Command interface when timeout=0