fix for https://github.com/wordnik/swagger-ui/issues/310