small fix if someone sets type in task as uppercase string