Try to fix thread problem on UI