fix runLater bug