fix related to https://github.com/facebook/hhvm/issues/1681