Fix "undefined: ErrTimeout" error