fix segment fault, with path https://github.com/facebook/hhvm/issues/1300