fix bug in renderer
fix bug in renderer