Bug fixes related to accessing managed objects in different threads