fix for WantReadError