fix for https://github.com/wordnik/swagger-js/issues/81