fix HHVM incompatibility

see https://github.com/facebook/hhvm/issues/2544