register task bug