fix infinite loading for 404s