fixed proposed issue: https://github.com/Josko/aura-bot/issues/10

fixed this issue: https://github.com/Josko/aura-bot/issues/10

taken from: https://github.com/facebook/hhvm/commit/f55604ba3d916ab39354af67852583ec79038710