task priority event bug fix