fix schedule thread, set thread as daemon