fix sub task count