correct rendering errors