fix some hhvm errors