small clean up in renderer