Fixed ClearTaskIntent logic