Fix overlay freezing in sync mode when user clicks on it