fixed double rendering.