Fix bug on typetask update