fixed 304 & 404 errors