Fix bad filter ordering causing 500s instead of 401s