Thread local entity manager.
Fix text missing on first load after restart.