minor bug in add task type rules