Improve rendering when pid has changed