fix an autobug about updates outside of gui thread