fix for https://github.com/wordnik/swagger-ui/pull/399