prevent fetch error