Fix bug with access sublime from child thread.