fixes x[,1] issues in testthat