Added back check for magic tasks set size in special task handling