Fixing 404 behavior error