Fixed NPE.
Set fetch max wait.