Fixed continuously calling new threads when item dialogue is shown.