Multiple timeouts problem example and fix