Remove bad render code