Fixed rendering in multi-thread mode