fixing bug in polynomial matrix transpose apply