fix hierarchy bug of render context