fixing quantity bug in tasktomaterial view