fix for https://github.com/swagger-api/swagger-ui/pull/760