fixes empty task freezing and ugly log messages