fix task priorty event bug