Fix to work in hapi2