Fixed warnings for fetch request