Fixed the UI bug for scheduled tasks