Fix virtual rooting of the api