Fix bug: never updating on long render