fix for https://github.com/swagger-api/swagger-js/pull/165