Fixed renderer race condition bugs.