Fix rendering errors