Fix middleware not inherited on nested groups