Fix recursive rendering