fixed a bug with transposes being sparsified with x.T = sp.coo_matrix(x.T)